<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: visualization/include/pcl/visualization/pcl_painter2D.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('pcl__painter2_d_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">pcl_painter2D.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Software License Agreement (BSD License)</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *  Point Cloud Library (PCL) - www.pointclouds.org</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *  Copyright (c) 2012-, Open Perception, Inc.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *  All rights reserved.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *  Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *  modification, are permitted provided that the following conditions</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *  are met:</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *   * Redistributions of source code must retain the above copyright</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *     notice, this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *   * Redistributions in binary form must reproduce the above</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *     copyright notice, this list of conditions and the following</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *     disclaimer in the documentation and/or other materials provided</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *     with the distribution.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *   * Neither the name of the copyright holder(s) nor the names of its</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *     contributors may be used to endorse or promote products derived</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *     from this software without specific prior written permission.</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> *  &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> *  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> *  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"> *  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"> *  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment"> *  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"> *  ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment"> *  POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#ifndef PCL_VISUALUALIZATION_PCL_PAINTER2D_H_</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#define PCL_VISUALUALIZATION_PCL_PAINTER2D_H_</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &lt;pcl/pcl_exports.h&gt;</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#include &lt;vtkRenderer.h&gt;</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#include &lt;vtkRenderWindow.h&gt;</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#include &lt;vtkRenderWindowInteractor.h&gt;</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#include &lt;vtkSmartPointer.h&gt;</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#include &lt;vtkObjectFactory.h&gt;</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor">#include &lt;vtkContext2D.h&gt;</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">#include &lt;vtkTransform2D.h&gt;</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">#include &lt;vtkContextItem.h&gt;</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor">#include &lt;vtkContextView.h&gt;</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">#include &lt;vtkContextScene.h&gt;</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="preprocessor">#include &lt;vtkPen.h&gt;</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">#include &lt;vtkBrush.h&gt;</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor">#include &lt;vtkTextProperty.h&gt;</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="preprocessor">#include &lt;vtkOpenGLContextDevice2D.h&gt;</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor">#include &lt;vtkPoints2D.h&gt;</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="preprocessor">#include &quot;vtkCommand.h&quot;</span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="keyword">namespace </span>pcl</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;{</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;  <span class="keyword">namespace </span>visualization</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  {</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="structpcl_1_1visualization_1_1_figure2_d.html">   72</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structpcl_1_1visualization_1_1_figure2_d.html">Figure2D</a></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    {</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;      std::vector&lt;float&gt; info_;     <span class="comment">//information stored in a general form for every object</span></div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;      vtkPen *pen_;                 <span class="comment">//the corresponding pen and brush for the figure</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;      vtkBrush *brush_;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;      vtkTransform2D *transform_;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;      </div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;      <a class="code" href="structpcl_1_1visualization_1_1_figure2_d.html">Figure2D</a> (std::vector&lt;float&gt; info, vtkPen *p, vtkBrush * b, vtkTransform2D *t)</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;      {</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        this-&gt;pen_ = vtkPen::New ();</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        this-&gt;brush_ = vtkBrush::New ();</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        this-&gt;transform_ = vtkTransform2D::New();</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        this-&gt;pen_-&gt;DeepCopy (p);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        this-&gt;brush_-&gt;DeepCopy (b);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        this-&gt;transform_-&gt;SetMatrix (t-&gt;GetMatrix());</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        this-&gt;info_ = info; <span class="comment">//note: it copies :-)</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;      }</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;      <a class="code" href="structpcl_1_1visualization_1_1_figure2_d.html">Figure2D</a> (vtkPen *p, vtkBrush * b, vtkTransform2D *t)</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;      {</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        this-&gt;pen_ = vtkPen::New ();</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        this-&gt;brush_ = vtkBrush::New ();</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        this-&gt;transform_ = vtkTransform2D::New();</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        this-&gt;pen_-&gt;DeepCopy (p);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        this-&gt;brush_-&gt;DeepCopy (b);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        this-&gt;transform_-&gt;SetMatrix (t-&gt;GetMatrix());</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;      }</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;      </div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;      <span class="keywordtype">void</span> applyInternals (vtkContext2D *painter)</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;      {</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        painter-&gt;ApplyPen (pen_);</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        painter-&gt;ApplyBrush (brush_);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        painter-&gt;GetDevice ()-&gt;SetMatrix (transform_-&gt;GetMatrix());</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;      }</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;          </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;      <span class="keyword">virtual</span> <span class="keywordtype">void</span> draw (vtkContext2D *) {}</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    };</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    </div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="structpcl_1_1visualization_1_1_f_poly_line2_d.html">  114</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structpcl_1_1visualization_1_1_f_poly_line2_d.html">FPolyLine2D</a> : <span class="keyword">public</span> <a class="code" href="structpcl_1_1visualization_1_1_figure2_d.html">Figure2D</a></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    {</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;      <a class="code" href="structpcl_1_1visualization_1_1_f_poly_line2_d.html">FPolyLine2D</a> (std::vector&lt;float&gt; info, vtkPen *p, vtkBrush * b, vtkTransform2D *t) : <a class="code" href="structpcl_1_1visualization_1_1_figure2_d.html">Figure2D</a> (info, p, b, t){}</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;      <span class="keywordtype">void</span> draw (vtkContext2D * painter)</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;      {</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;        applyInternals(painter);  </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        painter-&gt;DrawPoly (&amp;info_[0], <span class="keyword">static_cast&lt;</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">&gt;</span> (info_.size ()) / 2);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;      }</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    };</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="structpcl_1_1visualization_1_1_f_points2_d.html">  128</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structpcl_1_1visualization_1_1_f_points2_d.html">FPoints2D</a> : <span class="keyword">public</span> <a class="code" href="structpcl_1_1visualization_1_1_figure2_d.html">Figure2D</a></div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    {</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160; </div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;      <a class="code" href="structpcl_1_1visualization_1_1_f_points2_d.html">FPoints2D</a> (std::vector&lt;float&gt; info, vtkPen *p, vtkBrush * b, vtkTransform2D *t) : <a class="code" href="structpcl_1_1visualization_1_1_figure2_d.html">Figure2D</a> (info, p, b, t) {}</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;      <span class="keywordtype">void</span> draw (vtkContext2D * painter)</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;      {</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;        applyInternals(painter);  </div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        painter-&gt;DrawPoints (&amp;info_[0], <span class="keyword">static_cast&lt;</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">&gt;</span> (info_.size ()) / 2);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;      }</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    };</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160; </div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="structpcl_1_1visualization_1_1_f_quad2_d.html">  142</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structpcl_1_1visualization_1_1_f_quad2_d.html">FQuad2D</a> : <span class="keyword">public</span> <a class="code" href="structpcl_1_1visualization_1_1_figure2_d.html">Figure2D</a></div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    {</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160; </div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;      <a class="code" href="structpcl_1_1visualization_1_1_f_quad2_d.html">FQuad2D</a> (std::vector&lt;float&gt; info, vtkPen *p, vtkBrush * b, vtkTransform2D *t) : <a class="code" href="structpcl_1_1visualization_1_1_figure2_d.html">Figure2D</a> (info, p, b, t) {}</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;      <span class="keywordtype">void</span> draw (vtkContext2D * painter)</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;      {</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;        applyInternals(painter);  </div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        painter-&gt;DrawQuad (&amp;info_[0]);</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;      }</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    };</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    </div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="structpcl_1_1visualization_1_1_f_polygon2_d.html">  156</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structpcl_1_1visualization_1_1_f_polygon2_d.html">FPolygon2D</a> : <span class="keyword">public</span> <a class="code" href="structpcl_1_1visualization_1_1_figure2_d.html">Figure2D</a></div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    {</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;      <a class="code" href="structpcl_1_1visualization_1_1_f_polygon2_d.html">FPolygon2D</a> (std::vector&lt;float&gt; info, vtkPen *p, vtkBrush * b, vtkTransform2D *t) : <a class="code" href="structpcl_1_1visualization_1_1_figure2_d.html">Figure2D</a> (info, p, b, t){}</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160; </div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;      <span class="keywordtype">void</span> draw (vtkContext2D * painter)</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;      {</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        applyInternals(painter);  </div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        painter-&gt;DrawPolygon (&amp;info_[0], <span class="keyword">static_cast&lt;</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">&gt;</span> (info_.size ()) / 2);</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;      }</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    };</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    </div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="structpcl_1_1visualization_1_1_f_elliptic_arc2_d.html">  170</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structpcl_1_1visualization_1_1_f_elliptic_arc2_d.html">FEllipticArc2D</a> : <span class="keyword">public</span> <a class="code" href="structpcl_1_1visualization_1_1_figure2_d.html">Figure2D</a></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    {</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160; </div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;      <a class="code" href="structpcl_1_1visualization_1_1_f_elliptic_arc2_d.html">FEllipticArc2D</a> (std::vector&lt;float&gt; info, vtkPen *p, vtkBrush * b, vtkTransform2D *t) : <a class="code" href="structpcl_1_1visualization_1_1_figure2_d.html">Figure2D</a> (info, p, b, t) {}</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;      <a class="code" href="structpcl_1_1visualization_1_1_f_elliptic_arc2_d.html">FEllipticArc2D</a> (<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> rx, <span class="keywordtype">float</span> ry, <span class="keywordtype">float</span> sa, <span class="keywordtype">float</span> ea, vtkPen *p, vtkBrush * b, vtkTransform2D *t) : <a class="code" href="structpcl_1_1visualization_1_1_figure2_d.html">Figure2D</a> (p, b, t)</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;      {</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;        info_.resize (6);</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;        info_[0] = x;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        info_[1] = y;</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        info_[2] = rx;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        info_[3] = ry;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        info_[4] = sa;</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        info_[5] = ea;</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;      }</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160; </div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;      <span class="keywordtype">void</span> draw (vtkContext2D * painter)</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;      {</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        applyInternals(painter);  </div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;        painter-&gt;DrawEllipticArc (info_[0], info_[1], info_[2], info_[3], info_[4], info_[5]);</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;      }</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    };</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160; </div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160; </div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html">  199</a></span>&#160;    <span class="keyword">class </span>PCL_EXPORTS <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html">PCLPainter2D</a>: <span class="keyword">public</span> vtkContextItem</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    {</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160; </div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;      <span class="comment">//static PCLPainter2D *New();</span></div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;      </div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a39d406312396ee25f9d1f7f97517111f">  207</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a39d406312396ee25f9d1f7f97517111f">PCLPainter2D</a> (<span class="keywordtype">char</span> <span class="keyword">const</span> * name = <span class="stringliteral">&quot;PCLPainter2D&quot;</span>);</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;      vtkTypeMacro (<a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html">PCLPainter2D</a>, vtkContextItem);</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160; </div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;      <span class="keyword">virtual</span> <span class="keywordtype">bool</span> </div>
<div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a57c383d8c5cad64fdc70fadf2c18f034">  214</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a57c383d8c5cad64fdc70fadf2c18f034">Paint</a> (vtkContext2D *painter);</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160; </div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#ae2f8f6168dbf6e6a88484f5c1c3de01a">  223</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#ae2f8f6168dbf6e6a88484f5c1c3de01a">addLine</a> (<span class="keywordtype">float</span> x1, <span class="keywordtype">float</span> y1, <span class="keywordtype">float</span> x2, <span class="keywordtype">float</span> y2);</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;      </div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a8c1f256dfac11c2a10f6cf8d24d32ece">  229</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a8c1f256dfac11c2a10f6cf8d24d32ece">addLine</a> (std::vector&lt;float&gt; p);</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160; </div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;      </div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aafb6c77cdbdc0333077b0196e5ea3e37">  237</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aafb6c77cdbdc0333077b0196e5ea3e37">addPoint</a> (<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y);</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a4af9c8c253b615196fb6c550cd353ab8">  243</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a4af9c8c253b615196fb6c550cd353ab8">addPoints</a> (std::vector&lt;float&gt; points);</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;      </div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;      </div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00253"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a2c66265159f9679e198864448d3830ad">  253</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a2c66265159f9679e198864448d3830ad">addRect</a> (<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> width, <span class="keywordtype">float</span> height);</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;      </div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00259"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aa4f46d2e4413d9e968c4922a975687d5">  259</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aa4f46d2e4413d9e968c4922a975687d5">addQuad</a> (std::vector&lt;float&gt; p);</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;      </div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00265"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aa25c38fb60e6f4d0100bf0e206e4e821">  265</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aa25c38fb60e6f4d0100bf0e206e4e821">addPolygon</a> (std::vector&lt;float&gt; p);</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160; </div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;      </div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00275"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a6b73f2170057cde3fbbe1c3e4a869c62">  275</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a6b73f2170057cde3fbbe1c3e4a869c62">addEllipse</a> (<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> rx, <span class="keywordtype">float</span> ry);</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;      </div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00283"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a144e77ea7b5296c0f29345067bee9f2c">  283</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a144e77ea7b5296c0f29345067bee9f2c">addCircle</a> (<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> r);</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;      </div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00294"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a485c43dd70b1f58885cba470c829e47a">  294</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a485c43dd70b1f58885cba470c829e47a">addEllipticArc</a> (<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> rx, <span class="keywordtype">float</span> ry, <span class="keywordtype">float</span> start_angle, <span class="keywordtype">float</span> end_angle);</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;      </div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00304"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#acf5fcaff1e89aeac989d839b42e6c087">  304</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#acf5fcaff1e89aeac989d839b42e6c087">addArc</a> (<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> r, <span class="keywordtype">float</span> start_angle, <span class="keywordtype">float</span> end_angle);</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160; </div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160; </div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00312"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a773d8a7a7898e3b4fb820aa86a3e5aef">  312</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a773d8a7a7898e3b4fb820aa86a3e5aef">translatePen</a> (<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;      </div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00318"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a3c57fe89dcda706f5aa1218c66c84cb0">  318</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a3c57fe89dcda706f5aa1218c66c84cb0">rotatePen</a>(<span class="keywordtype">double</span> angle);</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;      </div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00325"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a4a03de7626b15e093d4500e9f70b4f64">  325</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a4a03de7626b15e093d4500e9f70b4f64">scalePen</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;      </div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00331"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aa69679836ad116e0d6ed5916b3399335">  331</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aa69679836ad116e0d6ed5916b3399335">setTransform</a>(vtkMatrix3x3 *matrix);</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;      </div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;      vtkMatrix3x3 * </div>
<div class="line"><a name="l00336"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a54be6a96700dcc33a65e1b74f0c0cf01">  336</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a54be6a96700dcc33a65e1b74f0c0cf01">getTransform</a>();</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;      </div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00341"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a071c9918b5018c9a43933f2c3089554c">  341</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a071c9918b5018c9a43933f2c3089554c">clearTransform</a>();</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;      </div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;       <span class="keywordtype">void</span></div>
<div class="line"><a name="l00346"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a8d9c2d48bdcf9d717038f289b5d09049">  346</a></span>&#160;       <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a8d9c2d48bdcf9d717038f289b5d09049">clearFigures</a>();</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160; </div>
<div class="line"><a name="l00350"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aeadf390b4165c9407d3e8f2f13196440">  350</a></span>&#160;      <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aeadf390b4165c9407d3e8f2f13196440">setPenColor</a> (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> r, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> g, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> b, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> a);</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;      <span class="keywordtype">void</span> setPenWidth (<span class="keywordtype">float</span> w);</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;      <span class="keywordtype">void</span> setPenType (<span class="keywordtype">int</span> type);</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160; </div>
<div class="line"><a name="l00356"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aa74cd46e95687bb7824e1df80a263fe5">  356</a></span>&#160;      <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aa74cd46e95687bb7824e1df80a263fe5">getPenColor</a> ();</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;      <span class="keywordtype">float</span> getPenWidth ();</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;      <span class="keywordtype">int</span> getPenType ();</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;      <span class="keywordtype">void</span> setPen (vtkPen *pen);</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;      vtkPen* getPen ();</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160; </div>
<div class="line"><a name="l00364"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#ac47d3ff324b7b13af8fb002b847515bb">  364</a></span>&#160;      <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#ac47d3ff324b7b13af8fb002b847515bb">setBrush</a> (vtkBrush *brush);</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;      vtkBrush* getBrush ();</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;      <span class="keywordtype">void</span> setBrushColor (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> r, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> g, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> b, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> a);</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;      <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* getBrushColor ();</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160; </div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;      <span class="keywordtype">void</span></div>
<div class="line"><a name="l00375"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a5840d36bf5d953ba1b5e1c924ba2f7ce">  375</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a5840d36bf5d953ba1b5e1c924ba2f7ce">setBackgroundColor</a> (<span class="keyword">const</span> <span class="keywordtype">double</span> r, <span class="keyword">const</span> <span class="keywordtype">double</span> g, <span class="keyword">const</span> <span class="keywordtype">double</span> b);</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160; </div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;      <span class="keywordtype">void</span></div>
<div class="line"><a name="l00381"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a76d12170524b9629fb9385a7f6979c03">  381</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a76d12170524b9629fb9385a7f6979c03">setBackgroundColor</a> (<span class="keyword">const</span> <span class="keywordtype">double</span> color[3]);</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160; </div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;      <span class="keywordtype">double</span> *</div>
<div class="line"><a name="l00387"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#adf93f82e8b422de4a403999756344068">  387</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#adf93f82e8b422de4a403999756344068">getBackgroundColor</a> ();</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160; </div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160; </div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;      <span class="keywordtype">void</span></div>
<div class="line"><a name="l00395"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#af531a50e5136562f533b538ae29f0147">  395</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#af531a50e5136562f533b538ae29f0147">setWindowSize</a> (<span class="keywordtype">int</span> w, <span class="keywordtype">int</span> h);</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160; </div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;      <span class="keywordtype">int</span> *</div>
<div class="line"><a name="l00401"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a206cd86a2fa97623d6c1f073267285a3">  401</a></span>&#160;      <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a206cd86a2fa97623d6c1f073267285a3">getWindowSize</a> ();</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160; </div>
<div class="line"><a name="l00405"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a62f28df612d9044ce962740e50e7e227">  405</a></span>&#160;      <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a62f28df612d9044ce962740e50e7e227">display</a> ();</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;      </div>
<div class="line"><a name="l00410"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#adbf068e4c0b5d5739e23f03dcb53e174">  410</a></span>&#160;      <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#adbf068e4c0b5d5739e23f03dcb53e174">spinOnce</a> ( <span class="keyword">const</span> <span class="keywordtype">int</span> spin_time = 0 );</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;        </div>
<div class="line"><a name="l00414"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a17d878239ac5de24fcb134dfd4603932">  414</a></span>&#160;      <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a17d878239ac5de24fcb134dfd4603932">spin</a> ();</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160; </div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;      <span class="comment">//std::map&lt; int, std::vector&lt; std::vector&lt;float&gt; &gt; &gt; figures_; //FIG_TYPE -&gt; vector&lt;array&gt;</span></div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160; </div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;      <span class="comment">//All the figures drawn till now gets stored here</span></div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;      std::vector&lt;Figure2D *&gt; figures_;</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;    </div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;      <span class="comment">//state variables of the class</span></div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;      vtkPen *current_pen_;</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;      vtkBrush *current_brush_;</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;      vtkTransform2D *current_transform_;</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;      <span class="keywordtype">int</span> win_width_, win_height_;</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;      <span class="keywordtype">double</span> bkg_color_[3];</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160; </div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;      vtkContextView *view_;</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;      </div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;      <span class="comment">//####event callback class####</span></div>
<div class="line"><a name="l00432"></a><span class="lineno"><a class="line" href="structpcl_1_1visualization_1_1_p_c_l_painter2_d_1_1_exit_main_loop_timer_callback.html">  432</a></span>&#160;        <span class="keyword">struct </span><a class="code" href="structpcl_1_1visualization_1_1_p_c_l_painter2_d_1_1_exit_main_loop_timer_callback.html">ExitMainLoopTimerCallback</a> : <span class="keyword">public</span> vtkCommand</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;        {</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;          <span class="keyword">static</span> <a class="code" href="structpcl_1_1visualization_1_1_p_c_l_painter2_d_1_1_exit_main_loop_timer_callback.html">ExitMainLoopTimerCallback</a>* New ()</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;          {</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;            <span class="keywordflow">return</span> (<span class="keyword">new</span> <a class="code" href="structpcl_1_1visualization_1_1_p_c_l_painter2_d_1_1_exit_main_loop_timer_callback.html">ExitMainLoopTimerCallback</a>);</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;          }</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;          <span class="keyword">virtual</span> <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;          Execute (vtkObject* vtkNotUsed (caller), <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> event_id, <span class="keywordtype">void</span>* call_data)</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;          {</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;            <span class="keywordflow">if</span> (event_id != vtkCommand::TimerEvent)</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;              <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;            <span class="keywordtype">int</span> timer_id = *(<span class="keyword">reinterpret_cast&lt;</span><span class="keywordtype">int</span>*<span class="keyword">&gt;</span> (call_data));</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160; </div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;            <span class="keywordflow">if</span> (timer_id != right_timer_id)</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;              <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160; </div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;            <span class="comment">// Stop vtk loop and send notification to app to wake it up</span></div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;<span class="preprocessor">#if ((VTK_MAJOR_VERSION == 5) &amp;&amp; (VTK_MINOR_VERSION &lt;= 4))</span></div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;            interactor-&gt;stopLoop ();</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;            interactor-&gt;TerminateApp ();</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;          }</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;          <span class="keywordtype">int</span> right_timer_id;</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;<span class="preprocessor">#if ((VTK_MAJOR_VERSION == 5) &amp;&amp; (VTK_MINOR_VERSION &lt;= 4))</span></div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_visualizer_interactor.html">PCLVisualizerInteractor</a> *interactor;</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;          vtkRenderWindowInteractor *interactor;</div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;        };</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;        </div>
<div class="line"><a name="l00464"></a><span class="lineno"><a class="line" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#acdc07525ae779dc17e7f21d27b746738">  464</a></span>&#160;        <a class="code" href="classvtk_smart_pointer.html">vtkSmartPointer&lt;ExitMainLoopTimerCallback&gt;</a> <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#acdc07525ae779dc17e7f21d27b746738">exit_loop_timer_</a>;</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;    };</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160; </div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;  }</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;}</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160; </div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;<span class="preprocessor">#endif  </span><span class="comment">/* PCL_VISUALUALIZATION_PCL_PAINTER2D_H_ */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160; </div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html">pcl::visualization::PCLPainter2D</a></div><div class="ttdoc">PCL Painter2D main class. Class for drawing 2D figures</div><div class="ttdef"><b>Definition:</b> pcl_painter2D.h:200</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a071c9918b5018c9a43933f2c3089554c"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a071c9918b5018c9a43933f2c3089554c">pcl::visualization::PCLPainter2D::clearTransform</a></div><div class="ttdeci">void clearTransform()</div><div class="ttdoc">Clears all the transformation applied. Sets the transformation matrix to Identity</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a144e77ea7b5296c0f29345067bee9f2c"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a144e77ea7b5296c0f29345067bee9f2c">pcl::visualization::PCLPainter2D::addCircle</a></div><div class="ttdeci">void addCircle(float x, float y, float r)</div><div class="ttdoc">Draw a circle based on the inputs</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a17d878239ac5de24fcb134dfd4603932"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a17d878239ac5de24fcb134dfd4603932">pcl::visualization::PCLPainter2D::spin</a></div><div class="ttdeci">void spin()</div><div class="ttdoc">spins (runs the event loop) the interactor indefinitely. Same as display() - added to retain the simi...</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a206cd86a2fa97623d6c1f073267285a3"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a206cd86a2fa97623d6c1f073267285a3">pcl::visualization::PCLPainter2D::getWindowSize</a></div><div class="ttdeci">int * getWindowSize()</div><div class="ttdoc">set/get method for the window size.</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a2c66265159f9679e198864448d3830ad"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a2c66265159f9679e198864448d3830ad">pcl::visualization::PCLPainter2D::addRect</a></div><div class="ttdeci">void addRect(float x, float y, float width, float height)</div><div class="ttdoc">Draw a rectangle based on the given points</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a39d406312396ee25f9d1f7f97517111f"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a39d406312396ee25f9d1f7f97517111f">pcl::visualization::PCLPainter2D::PCLPainter2D</a></div><div class="ttdeci">PCLPainter2D(char const *name=&quot;PCLPainter2D&quot;)</div><div class="ttdoc">Constructor of the class</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a3c57fe89dcda706f5aa1218c66c84cb0"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a3c57fe89dcda706f5aa1218c66c84cb0">pcl::visualization::PCLPainter2D::rotatePen</a></div><div class="ttdeci">void rotatePen(double angle)</div><div class="ttdoc">Create a rotation matrix and concatenate it with the current transformation.</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a485c43dd70b1f58885cba470c829e47a"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a485c43dd70b1f58885cba470c829e47a">pcl::visualization::PCLPainter2D::addEllipticArc</a></div><div class="ttdeci">void addEllipticArc(float x, float y, float rx, float ry, float start_angle, float end_angle)</div><div class="ttdoc">Draw an elliptic arc based on the inputs</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a4a03de7626b15e093d4500e9f70b4f64"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a4a03de7626b15e093d4500e9f70b4f64">pcl::visualization::PCLPainter2D::scalePen</a></div><div class="ttdeci">void scalePen(double x, double y)</div><div class="ttdoc">Create a scale matrix and concatenate it with the current transformation.</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a4af9c8c253b615196fb6c550cd353ab8"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a4af9c8c253b615196fb6c550cd353ab8">pcl::visualization::PCLPainter2D::addPoints</a></div><div class="ttdeci">void addPoints(std::vector&lt; float &gt; points)</div><div class="ttdoc">Draw specified point(s).</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a54be6a96700dcc33a65e1b74f0c0cf01"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a54be6a96700dcc33a65e1b74f0c0cf01">pcl::visualization::PCLPainter2D::getTransform</a></div><div class="ttdeci">vtkMatrix3x3 * getTransform()</div><div class="ttdoc">Returns the current transformation matrix.</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a57c383d8c5cad64fdc70fadf2c18f034"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a57c383d8c5cad64fdc70fadf2c18f034">pcl::visualization::PCLPainter2D::Paint</a></div><div class="ttdeci">virtual bool Paint(vtkContext2D *painter)</div><div class="ttdoc">Paint event for the chart, called whenever the chart needs to be drawn</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a5840d36bf5d953ba1b5e1c924ba2f7ce"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a5840d36bf5d953ba1b5e1c924ba2f7ce">pcl::visualization::PCLPainter2D::setBackgroundColor</a></div><div class="ttdeci">void setBackgroundColor(const double r, const double g, const double b)</div><div class="ttdoc">set/get method for the viewport's background color.</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a62f28df612d9044ce962740e50e7e227"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a62f28df612d9044ce962740e50e7e227">pcl::visualization::PCLPainter2D::display</a></div><div class="ttdeci">void display()</div><div class="ttdoc">displays all the figures added in a window.</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a6b73f2170057cde3fbbe1c3e4a869c62"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a6b73f2170057cde3fbbe1c3e4a869c62">pcl::visualization::PCLPainter2D::addEllipse</a></div><div class="ttdeci">void addEllipse(float x, float y, float rx, float ry)</div><div class="ttdoc">Draw an ellipse based on the inputs</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a76d12170524b9629fb9385a7f6979c03"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a76d12170524b9629fb9385a7f6979c03">pcl::visualization::PCLPainter2D::setBackgroundColor</a></div><div class="ttdeci">void setBackgroundColor(const double color[3])</div><div class="ttdoc">set/get method for the viewport's background color.</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a773d8a7a7898e3b4fb820aa86a3e5aef"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a773d8a7a7898e3b4fb820aa86a3e5aef">pcl::visualization::PCLPainter2D::translatePen</a></div><div class="ttdeci">void translatePen(double x, double y)</div><div class="ttdoc">Create a translation matrix and concatenate it with the current transformation.</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a8c1f256dfac11c2a10f6cf8d24d32ece"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a8c1f256dfac11c2a10f6cf8d24d32ece">pcl::visualization::PCLPainter2D::addLine</a></div><div class="ttdeci">void addLine(std::vector&lt; float &gt; p)</div><div class="ttdoc">Draw line(s) between the specified points</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_a8d9c2d48bdcf9d717038f289b5d09049"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#a8d9c2d48bdcf9d717038f289b5d09049">pcl::visualization::PCLPainter2D::clearFigures</a></div><div class="ttdeci">void clearFigures()</div><div class="ttdoc">remove all the figures from the window</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_aa25c38fb60e6f4d0100bf0e206e4e821"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aa25c38fb60e6f4d0100bf0e206e4e821">pcl::visualization::PCLPainter2D::addPolygon</a></div><div class="ttdeci">void addPolygon(std::vector&lt; float &gt; p)</div><div class="ttdoc">Draw a polygon between the specified points</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_aa4f46d2e4413d9e968c4922a975687d5"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aa4f46d2e4413d9e968c4922a975687d5">pcl::visualization::PCLPainter2D::addQuad</a></div><div class="ttdeci">void addQuad(std::vector&lt; float &gt; p)</div><div class="ttdoc">Draw a quadrilateral based on the given points</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_aa69679836ad116e0d6ed5916b3399335"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aa69679836ad116e0d6ed5916b3399335">pcl::visualization::PCLPainter2D::setTransform</a></div><div class="ttdeci">void setTransform(vtkMatrix3x3 *matrix)</div><div class="ttdoc">Create a translation matrix and concatenate it with the current transformation.</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_aa74cd46e95687bb7824e1df80a263fe5"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aa74cd46e95687bb7824e1df80a263fe5">pcl::visualization::PCLPainter2D::getPenColor</a></div><div class="ttdeci">unsigned char * getPenColor()</div><div class="ttdoc">set/get methods for current working vtkPen</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_aafb6c77cdbdc0333077b0196e5ea3e37"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aafb6c77cdbdc0333077b0196e5ea3e37">pcl::visualization::PCLPainter2D::addPoint</a></div><div class="ttdeci">void addPoint(float x, float y)</div><div class="ttdoc">Draw specified point(s).</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_ac47d3ff324b7b13af8fb002b847515bb"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#ac47d3ff324b7b13af8fb002b847515bb">pcl::visualization::PCLPainter2D::setBrush</a></div><div class="ttdeci">void setBrush(vtkBrush *brush)</div><div class="ttdoc">set/get methods for current working vtkBrush</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_acdc07525ae779dc17e7f21d27b746738"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#acdc07525ae779dc17e7f21d27b746738">pcl::visualization::PCLPainter2D::exit_loop_timer_</a></div><div class="ttdeci">vtkSmartPointer&lt; ExitMainLoopTimerCallback &gt; exit_loop_timer_</div><div class="ttdoc">Callback object enabling us to leave the main loop, when a timer fires.</div><div class="ttdef"><b>Definition:</b> pcl_painter2D.h:464</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_acf5fcaff1e89aeac989d839b42e6c087"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#acf5fcaff1e89aeac989d839b42e6c087">pcl::visualization::PCLPainter2D::addArc</a></div><div class="ttdeci">void addArc(float x, float y, float r, float start_angle, float end_angle)</div><div class="ttdoc">Draw an arc based on the inputs</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_adbf068e4c0b5d5739e23f03dcb53e174"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#adbf068e4c0b5d5739e23f03dcb53e174">pcl::visualization::PCLPainter2D::spinOnce</a></div><div class="ttdeci">void spinOnce(const int spin_time=0)</div><div class="ttdoc">spins (runs the event loop) the interactor for spin_time amount of time. The name is confusing and wi...</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_adf93f82e8b422de4a403999756344068"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#adf93f82e8b422de4a403999756344068">pcl::visualization::PCLPainter2D::getBackgroundColor</a></div><div class="ttdeci">double * getBackgroundColor()</div><div class="ttdoc">set/get method for the viewport's background color.</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_ae2f8f6168dbf6e6a88484f5c1c3de01a"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#ae2f8f6168dbf6e6a88484f5c1c3de01a">pcl::visualization::PCLPainter2D::addLine</a></div><div class="ttdeci">void addLine(float x1, float y1, float x2, float y2)</div><div class="ttdoc">Draw a line between the specified points.</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_aeadf390b4165c9407d3e8f2f13196440"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#aeadf390b4165c9407d3e8f2f13196440">pcl::visualization::PCLPainter2D::setPenColor</a></div><div class="ttdeci">void setPenColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a)</div><div class="ttdoc">set/get methods for current working vtkPen</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_painter2_d_html_af531a50e5136562f533b538ae29f0147"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_painter2_d.html#af531a50e5136562f533b538ae29f0147">pcl::visualization::PCLPainter2D::setWindowSize</a></div><div class="ttdeci">void setWindowSize(int w, int h)</div><div class="ttdoc">set/get method for the window size.</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_visualizer_interactor_html"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_visualizer_interactor.html">pcl::visualization::PCLVisualizerInteractor</a></div><div class="ttdoc">The PCLVisualizer interactor</div><div class="ttdef"><b>Definition:</b> interactor.h:76</div></div>
<div class="ttc" id="aclassvtk_smart_pointer_html"><div class="ttname"><a href="classvtk_smart_pointer.html">vtkSmartPointer</a></div><div class="ttdef"><b>Definition:</b> actor_map.h:50</div></div>
<div class="ttc" id="astructpcl_1_1visualization_1_1_f_elliptic_arc2_d_html"><div class="ttname"><a href="structpcl_1_1visualization_1_1_f_elliptic_arc2_d.html">pcl::visualization::FEllipticArc2D</a></div><div class="ttdoc">Class for storing EllipticArc; every ellipse , circle are covered by this</div><div class="ttdef"><b>Definition:</b> pcl_painter2D.h:171</div></div>
<div class="ttc" id="astructpcl_1_1visualization_1_1_f_points2_d_html"><div class="ttname"><a href="structpcl_1_1visualization_1_1_f_points2_d.html">pcl::visualization::FPoints2D</a></div><div class="ttdoc">Class for storing Points</div><div class="ttdef"><b>Definition:</b> pcl_painter2D.h:129</div></div>
<div class="ttc" id="astructpcl_1_1visualization_1_1_f_poly_line2_d_html"><div class="ttname"><a href="structpcl_1_1visualization_1_1_f_poly_line2_d.html">pcl::visualization::FPolyLine2D</a></div><div class="ttdoc">Class for PolyLine</div><div class="ttdef"><b>Definition:</b> pcl_painter2D.h:115</div></div>
<div class="ttc" id="astructpcl_1_1visualization_1_1_f_polygon2_d_html"><div class="ttname"><a href="structpcl_1_1visualization_1_1_f_polygon2_d.html">pcl::visualization::FPolygon2D</a></div><div class="ttdoc">Class for Polygon</div><div class="ttdef"><b>Definition:</b> pcl_painter2D.h:157</div></div>
<div class="ttc" id="astructpcl_1_1visualization_1_1_f_quad2_d_html"><div class="ttname"><a href="structpcl_1_1visualization_1_1_f_quad2_d.html">pcl::visualization::FQuad2D</a></div><div class="ttdoc">Class for storing Quads</div><div class="ttdef"><b>Definition:</b> pcl_painter2D.h:143</div></div>
<div class="ttc" id="astructpcl_1_1visualization_1_1_figure2_d_html"><div class="ttname"><a href="structpcl_1_1visualization_1_1_figure2_d.html">pcl::visualization::Figure2D</a></div><div class="ttdoc">Abstract class for storing figure information. All the derived class uses the same method draw() to i...</div><div class="ttdef"><b>Definition:</b> pcl_painter2D.h:73</div></div>
<div class="ttc" id="astructpcl_1_1visualization_1_1_p_c_l_painter2_d_1_1_exit_main_loop_timer_callback_html"><div class="ttname"><a href="structpcl_1_1visualization_1_1_p_c_l_painter2_d_1_1_exit_main_loop_timer_callback.html">pcl::visualization::PCLPainter2D::ExitMainLoopTimerCallback</a></div><div class="ttdef"><b>Definition:</b> pcl_painter2D.h:433</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_2ac5e416e20d6963657ce30aa6dbcd0f.html">visualization</a></li><li class="navelem"><a class="el" href="dir_ca70b9fa2354bc60013eaf653373b145.html">include</a></li><li class="navelem"><a class="el" href="dir_28dd85ce8ffdd76a714606be7f2489ac.html">pcl</a></li><li class="navelem"><a class="el" href="dir_39db60481a174b518eca40dd7e3347e8.html">visualization</a></li><li class="navelem"><b>pcl_painter2D.h</b></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
